﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/List.Master" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="Honestysoft.Financing.WebUI.UIFramework.Main" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="images/skin.css" rel="stylesheet" type="text/css" />
<style type="text/css">
    body
    {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        background-color: #EEF2FB;
    }
    a:hover
    {
        font-weight: bold;
        color: #FF6600;
    }
     
.sec2 {
	FONT-WEIGHT: bold;
	CURSOR: hand;
	COLOR: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px; 
	background-color: #666;
	border: 1px solid #e2e7ed; ;
}
    tbody td{text-align:left;}
</style>
<script language="javascript" type="text/javascript">
    function showWin() {
        var result = showModalDialog("../Demo2/info.htm", window, "dialogWidth:800px;dialogHeight:600px;center:yes;help:no;resizable:no;status:no");
    }
    function showWin2() {
        var result = showModalDialog("../Demo2/task.htm?id=1", window, "dialogWidth:700px;dialogHeight:400px;center:yes;help:no;resizable:no;status:no");
    }
    function openwindow(url, name) {
        var iWidth = 940; //弹出窗口的宽度;
        var iHeight = window.screen.availHeight - 30; //弹出窗口的高度;
        var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置;
        var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置;
        window.open(url, name, 'height=' + iHeight + ',innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',toolbar=no,menubar=no,scrollbars=yes,resizeable=no,location=no,status=no');
    }
</script>
    <div style="width:58%; float:left;"><div style="padding:5px;font-size:9pt;font-family:宋体">
        今天是:<%= DateTime.Now.ToString("yyyy-MM-dd") %>
    </div>
 <table width="100%" border="0" cellpadding="3" style="margin:auto">
 <tr>
 <td colspan="2" style="height:12px; overflow:hidden;"> </td>
 </tr>
 <tr>
 <td style="width:50px; text-align:left">  <img src="../images/timelist.png" alt="" /> </td>
 <td style=" line-height:150%;font-size:9pt;font-family:宋体"> 
 欢迎你使用融资项目审核管理系统 
 </td>
 </tr>
 </table> 
  <!--左列-->
      <!--JavaScript部分-->
                            <script language="javascript">

                                function secBoard(n) {
                                    for (i = 0; i < secTable.cells.length; i++)
                                        secTable.cells[i].className = "sec1";
                                    secTable.cells[n].className = "sec2";
                                    for (i = 0; i < mainTable.tBodies.length; i++)
                                        mainTable.tBodies[i].style.display = "none";
                                    mainTable.tBodies[n].style.display = "block";
                                }
                            </script>
                            <!--HTML部分-->
                            <table width="120px" border="0" cellpadding="0" cellspacing="0" id="secTable"> 
                                    <tr > 
                                        <td width="120px"   class="sec2" onclick="secBoard(0)" style="text-align:center" align="middle" height="20">
                                            待办任务(<asp:Label runat="server" ID="lblToDoCount" Text="0"></asp:Label>)
                                        </td>
                                    </tr> 
                            </table>
                           <table id="mainTable" cellspacing="0" cellpadding="0" width="100%"  border="0">
                                <!--关于TBODY标记-->
                                <tbody style="display: block">
                                    <tr>
                                        <td valign="top" height="260px">
                                            <table cellpadding="0" width="100%" cellspacing="0" border="1" class="t1" id="Table1">
                                                <thead>                                                    
                                                    <th align="center">
                                                        主题
                                                    </th>
                                                    <th align="center" width="110px">
                                                        发送时间
                                                    </th>
                                                    <th align="center" width="60px">
                                                        发送人
                                                    </th>
                                                </thead>
                                                <asp:Repeater ID="rptWaitfor" runat="server">
                                                    <ItemTemplate>
                                                        <tr>                                                            
                                                            <td style="text-align:left">
                                                            <%# GetPageUrl(DataBinder.Eval(Container.DataItem, "BuDataID") + "", DataBinder.Eval(Container.DataItem, "BuDataSubject") + "", DataBinder.Eval(Container.DataItem, "BuDataCode")+"")%>
                                                            </td>
                                                            <td style="text-align:center">
                                                               <%# string.Format("{0:yyyy-MM-dd}", DataBinder.Eval(Container.DataItem, "ReqTime"))%> 
                                                            </td>
                                                            <td style="text-align:center">
                                                                <%# DataBinder.Eval(Container.DataItem, "ReqEmployeeName")%> 
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <div  style="padding:3px; height:10px; overflow:hidden;"></div>
                                <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="line_table" >
                                <tr>
                                    <td width="20px" height="27" background="images/news-title-bg.gif">
                                        <img src="../images/news-title-bg.gif" width="2" height="27">
                                    </td>
                                    <td   background="../images/news-title-bg.gif" class="left_bt2">
                                        最新批次审核作业表
                                    </td>
                                </tr>
                                <tr>
                                    <td   valign="top">
                                        
                                    </td>
                                    <td  valign="top" height="168px">
                                     
                                            <table width="100%" border="0" cellpadding="1" cellspacing="0"  >
                                            <tr>
                                                <td>
                                                
                                                <div id="demo" style="overflow:hidden; height:120px;">
<div id="demo1">
                <ul >
                                            <asp:Repeater runat="server" ID="rptNew">
                                                <ItemTemplate>
                                                   <li> <%# GetPageUrl(DataBinder.Eval(Container.DataItem, "ID") + "", DataBinder.Eval(Container.DataItem, "Code") + "（" + DataBinder.Eval(Container.DataItem, "ProjectName")+"）", DataBinder.Eval(Container.DataItem, "TableType") + "")%></li>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                             
                </ul>
</div>
<div id="demo2"></div>
</div>
     <script language="javascript">
         var speed = 30
         demo2.innerHTML = demo1.innerHTML
         function Marquee() {
             if (demo2.offsetTop - demo.scrollTop <= 0)
                 demo.scrollTop -= demo1.offsetHeight
             else {
                 demo.scrollTop++
             }
         }
         var MyMar = setInterval(Marquee, speed)
         demo.onmouseover = function () { clearInterval(MyMar) }
         demo.onmouseout = function () { MyMar = setInterval(Marquee, speed) }
                                        </script>
                                                
                                                
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                               
                            </table>                                      
                        </div>
    
                     <!--右列-->
                    <div style="width:40%; float:right;">
    
                            <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="line_table">
                                <tr>
                                    <td width="20px" height="27" background="images/news-title-bg.gif">
                                        <img src="../images/news-title-bg.gif" width="2" height="27">
                                    </td>
                                    <td   background="../images/news-title-bg.gif" class="left_bt2">
                                        累计统计
                                    </td>
                                </tr>
                                <tr height="200px">
                                    <td   valign="top">
                                        
                                    </td>
                                    <td  valign="top">
                                        <iframe id="Iframe2" style="border:0;height:100%" border=0 frameborder=0  src="<%=Url_Summary %>"></iframe>

                                    </td>
                                </tr>
                               
                            </table>


                               <div  style="padding:3px; height:10px; overflow:hidden;"></div>
                                <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="line_table">
                                <tr>
                                    <td width="20px" height="27" background="images/news-title-bg.gif">
                                        <img src="../images/news-title-bg.gif" width="2" height="27">
                                    </td>
                                    <td   background="../images/news-title-bg.gif" class="left_bt2">
                                        本月统计
                                    </td>
                                </tr>
                                <tr height="200px">
                                    <td   valign="top">
                                        
                                    </td>
                                    <td  valign="top">
                                        <iframe id="ifrmMonth"  style="border:0;height:100%" border=0 frameborder=0  src="<%=Url_Month %>"></iframe>

                                    </td>
                                </tr>
                               
                            </table>

                               <div  style="padding:3px; height:10px; overflow:hidden;"></div>

                            
<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="line_table">
                                <tr>
                                    <td width="20px" height="27" background="images/news-title-bg.gif">
                                        <img src="../images/news-title-bg.gif" width="2" height="27">
                                    </td>
                                    <td   background="../images/news-title-bg.gif" class="left_bt2" height="4">
                                        本周统计
                                    </td>
                                </tr>
                                <tr height="200px">
                                    <td   valign="top">
                                        
                                    </td>
                                    <td  valign="top">
                                       <iframe id="Iframe1"  style="border:0;height:100%" border=0 frameborder=0  src="<%=Url_Week %>"></iframe>

                                    </td>
                                </tr>
                               
                            </table>
    
    </div>






</asp:Content>
